package com.pengcheng.taskapplication.mvp.view.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.pengcheng.taskapplication.R;
import com.pengcheng.taskapplication.net.IView;

import butterknife.BindView;
import butterknife.OnClick;

public class AddBankCard extends BaseActivity implements IView {

    @BindView(R.id.tv_center_title)
    TextView tv_title;

    @Override
    protected int layoutResID() {
        return R.layout.activity_add_bank;
    }

    @Override
    protected void initData() {
        tv_title.setText("快捷支付");
    }

    @Override
    public void onSuccess(String code, String msg, Object data, String actionType) {

    }

    @Override
    public void onFailed(String code, String msg) {

    }

    @OnClick({R.id.img_back,R.id.ll_add_bank})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_back:
                AddBankCard.this.finish();
                break;
            case R.id.ll_add_bank:
                //跳转到添加银行卡
                Intent intent =new Intent(context,ApplyBindCard.class);
                startActivity(intent);
                this.finish();
                break;
        }
    }
}
